removes duplicate lines