fixed drag and drop and rmed dupe code