implement duplicate-lines