duplicate entry issue -fixed