search algorithm update