distinct search items
refactor