search method fixed