moved default attribute assignment to reset_attributes