dupe check works in theory