clean up dupe check