correction for dup check