change the stucture of dictionary, from embed to has_many