fixed pairing alg