pass the search results by reference, remove has_next and has_prev methods
remove unused imports