remove unneeded messages