Simulink model improved