pairing scheme