updates the message types