added second implementation of message changing