switch indexes, dups