compiling messages