refactore code
reduce searchPhrases
remove commments