minor adjustment to the words matching