erasing duplicate lines