pairing can be encoded as follows: