put dup check back in