minor modification to print message