solution for wordnet problem