message preparation