refactoring fuzzy search