debug search method