cleaned up index and element output so 1st index or element is always wrt seq1, and 2nd is wrt seq2