fixed checkDuplicates comment