add search method