assign_attributes in update