 Later, after Deng Ai defeated the Shu general Zhuge Zhan at Mianzhu (緜竹), Jiang Wei retreated from Jiange to Ba Commandery (巴郡).Another Wei army led by Zhong Hui advanced towards Fu County (涪縣), where Zhong Hui ordered Tian Xu, Hu Lie, Pang Hui and others to lead troops to pursue Jiang Wei's retreating army.Later that year, after the Shu emperor Liu Shan had surrendered and Shu had been vanquished by Wei, Zhong Hui planned to rebel against the Cao Wei state.