search and print