leaf pairing