makes the message changing work