debugging the search