use print_result() to display results