fixed error with search method(no recursion w/decorator)