Moving further westward, Xuanzang escaped robbers to reach Karasahr, then toured the non-Mahayana monasteries of Kucha. Further west he passed Aksu before turning northwest to cross the Tian Shan's Bedel Pass into modern Kyrgyzstan. He skirted Issyk Kul before visiting Tokmak on its northwest, and met the great Khagan of the Göktürks, whose relationship to the Tang emperor was friendly at the time. After a feast, Xuanzang continued west then southwest to Tashkent, capital of modern Uzbekistan. From here, he crossed the desert further west to Samarkand. In Samarkand, which was under Persian influence, the party came across some abandoned Buddhist temples and Xuanzang impressed the local king with his preaching. Setting out again to the south, Xuanzang crossed a spur of the Pamirs and passed through the famous Iron Gates. Continuing southward, he reached the Amu Darya and Termez, where he encountered a community of more than a thousand Buddhist monks.