change find to search method