filter duplicate messages