pairing procedure