minor change to reset_attributes