added code to change messages