update model.