remove duplicate lines working