removed search algo bug