updated the model