added if/else statement to print the results