played around with the search algorithm