 Yuwen Huaji soon abandoned Jiangdu and led the Xiaoguo Army back north, toward Luoyang.His army battled those of another rebel leader, Li Mi the Duke of Wei, but was repeatedly defeated by Li Mi.During this time, Li Yuan, who has himself taken the throne at Chang'an, establishing Tang Dynasty as its Emperor Gaozu, sent secret messengers to Yuwen Shiji, then at Liyang (黎陽, in modern Hebi, Henan), and Yuwen Shiji secretly sent messengers to him as well, offering him golden bracelets—using bracelets (環, "huan", a homophone to 還, meaning "return") to show that he intended to support Tang at some point.