finish the search tool