update the models