work on search method