only print to the screen if the message was successful