adding message structure