 He served in several top positions of the Imperial Academy, and participated in the composition of the "Book of Sui", the official history of the Sui dynasty.The emperor awarded him the nobility rank of viscount.To reconcile the conflicting versions and traditions of the Confucian classics, in 637, Emperor Taizong sponsored a project to create a standardized compilation and interpretation of the texts.