added removeMessage