fixed duplcate entry issue