edit to print the result for the search result