write a message.