refactor common_words