complete the search