 In 770, he was put in charge of selecting officials for the ministry of defense (兵部, "Bingbu").In 771, he was made the deputy minister of census (戶部侍郎, "Hubu Shilang") and put in charge of the economic affairs for the western half of the empire, replacing Diwu Qi.At that time, the imperial treasury was drained due to wars and corruption.