fixing duplicate data