search and print results