prints out the results