delete redundant messages