update message structure