changed update_attributes