update mthe model.