Towards the end of Wen Ti 's reign , the Xianbei state of Northern Wei began to strengthen .
Towards the end of Wen Ti 's reign , the Xianbei state of Northern Wei decisively defeated an attempt by Wen Ti to destroy it .
Towards the end of Wen Ti 's reign , the Xianbei state of Northern Wei began to strengthen , and decisively defeated an attempt by Wen Ti to destroy it .