fixing the search