remove repeated messages