pangu main code