modify the search method