update message data structure