find the word and refactoring