fixed duplicate lines