add nested attributes to model