with search method