sentences:  Emperor Yang, then at the front of a campaign against Goguryeo, sent the general Yuwen Shu back to Sui territory to attack Yang Xuangan, and Yuwen and Yang Hao exchanged letters, and they further met and joined forces against Yang Xuangan.However, after Yang Xuangan's rebellion was suppressed, Yang Hao was indicted for communicating with imperial officials—an act not allowed for imperial princes—and removed from his post.In spring 618, with the Sui state engulfed in various rebellions, Yang Hao was with Emperor Yang at Jiangdu (江都, in modern Yangzhou, Jiangsu), when a coup led by the general Yuwen Huaji (Yuwen Shu's son) killed Emperor Yang.