trying put searching in recursion way