fixing duplicate entries