INCORPORATED situation dependant searching algorithm