deleting long queues duplicates