implemented the DelegateMessageHandler