change the structure of message, the structure for sending and encoding message