writing messaging/