not those from modern Shandong), Zhang found the talk to be inappropriate, and stated, "Your subject has heard that the Son of Heaven should view the entire empire as his home, and should not divide it through geographical limitations; if you do so, you will show prejudice." Emperor Taizong was impressed, and awarded Zhang a horse, a set of clothing, and money. He also began to consult Zhang on important matters and promoted Zhang to the post of imperial attendant. In 641, Emperor Taizong, at an imperial gathering, made the comment, "Although I am the lord of the empire, but I also often have to serve as general and chancellor." After Zhang withdrew from Emperor Taizong's presence, he submitted a note indicating his belief that the comment was inappropriate—noting that it sounded like he was arguing over achievements with his subjects. Emperor Taizong approved of his comment. By 643, when Emperor Taizong deposed his eldest son and crown prince Li Chengqian (over Li Chengqian's plotting to overthrow him) and replaced him with Li Zhi, Zhang was the assistant minister of justice. Emperor Taizong, when selecting staff members for Li Zhi, selected Zhang as an assistant head of the crown prince's household. In 645, during Emperor Taizong's campaign against Goguryeo, Emperor Taizong left Li Zhi at Zhang's home, Ding Prefecture, to be in charge of logistics, assisted by a number of officials led by the chancellor Gao Shilian, and Zhang was a member of Li Zhi's staff there. Li Zhi told Zhang, "This gives you a chance to return home in honor." He also gave Zhang supplies to allow him to worship his ancestors, and Zhang took this opportunity to recommend a number of scholars from his home, and while Li Zhi rejected making them officials (on the account that they were too old in age), he gave them rewards. After Emperor Taizong returned to the capital Chang'an after the Goguryeo campaign, he had Zhang serve as surveyor of the Henan region, and after that tour made him the acting assistant head of the executive bureau of government. In 646, Emperor Taizong, in the aftermaths of the collapse of Tang's one-time vassal and adversary Xueyantuo to the north, went to the important northern defense prefecture of Ling Prefecture (靈州, roughly modern Yinchuan, Ningxia), to try to affirm the faith of the former vassals of Xueyantuo, who were by now directly Tang