improve console.log message
add explanation and output