modify the storage of message