thanks for your reply.
That is exactly what i tried but then when i try to run the model on the hardware the following messages shows up:
_"The model parameters are not configured for the target hardware. You must configure the model parameters before you can generate an application that can run on the target hardware.
To configure the model parameters, click 'Yes'.
To leave the model parameters unchanged, click 'No'."_
when i click yes it reverts the changes i just made and runs fine. when i click no it does not run :/