re added code to print message