add duplicate line bug
quick fix: duplicate lines