implements MakePair.