move setting of model attr