fixing duplicate line