removing unneeded messages