The mechanism of high Tc superconductivity