creating message objects