message writing