 At last he joined Tang Dynasty's force and helped Li Yuan and Li Shimin with unifying the country.He was also killed during a battle against Liu Heita, like Luo Cheng did in the novel.One thing needs to be clarified