condition to print answers