changed printing to print message contents