condition to print out results