formatting messages