Realizing the pointlessness of the impermanent material world, the two friends set out as ascetics to search for an end to rebirth. In Mūlasarvāstivāda texts, the two friends visited all six major teachers of India at the time before realizing none of them had the right path. According to Pali texts, the two friends and their following of "brahmin" youths became students under only one of the teachers, the ascetic Sañjaya Vairatiputra (Pali: "Sañjaya Belaṭṭhaputta"), who was staying nearby. Pali texts describe Sañjaya as a teacher in the Indian Sceptic tradition, with Upatiṣya and Kolita eventually becoming dissatisfied with his teachings and leaving. In Mūlasarvāstivāda texts, the Chinese Buddhist Canon and in Tibetan accounts, however, he is depicted as a wise teacher with meditative vision who becomes ill and dies. In some accounts, he predicts the coming of the Buddha through his visions. After being unable to find what they were looking for, the two friends went their separate ways but made a pact that if one was to find the path to Nirvana, he would tell the other.