updating model.