move dynamic attribute to model