implemented the filtering of repeated messages
implemented the filtering of repeated messages