modified Message to EncryptedMessage