 He then successively served as the prefect of Guo Prefecture (果州, in modern Nanchong), Mian Prefecture (綿州, in modern Mianyang, Sichuan), and Sui Prefecture (遂州, in modern Suining, Sichuan).He was subsequently recalled to the capital Chang'an to serve as the deputy chief judge of the supreme court (大理少卿, "Dali Shaoqing") and then the principal of the imperial university (國子祭酒, "Guozi Jijiu").Yet later, he was made the prefect of Huai Prefecture (懷州, in modern Jiaozuo, Henan).