added else statement to print out on console the information that was gathered