theory of pairing