search method updated