add pairid index for history2