debugging the one-at-a-time remove-dups