creating the search