Right... and you're appending every credential twice. Let's give names... If `credential` A has a duplicate B, then we'll add both A and B to dups. And then later in the top-level loop, `credential` will be B, and we'll add both A and B to dups again.