changes update_model_parameters logic