update model attributes