resolved duplicate entry issue