update search method