update to the model