refactored vocabs to a model