search method