add code to erase the messages