console.log added with the else statement