removing redundant messages