remove line duplication