 He was promoted to the position of "xunfu" of Shaanxi but was later reassigned to be the "xunfu" of Shanxi.While in office, he set up the precursor of Shanxi University with the aid of the Welsh missionary Timothy Richard.In 1902, he was reassigned to be the "xunfu" of Guangdong.