The Kashmiri version of the legend goes like this: Vararuchi (identified with Katyayana), Indradatta and Vyadi were three disciples of the sage Varsha. Once, on behalf of their guru Varsha, they traveled to Ayodhya to seek a gurudakshina (guru's fee) from king Nanda. As they arrived to meet Nanda, the king died. Using his yogic powers, Indradatta entered Nanda's body, and granted Vararuchi's request for 10 million dinars (gold coins). The royal minister Shakatala realized what was happening, and had Indradatta's body burnt. But before he could take any action against the fake king (Indradatta in Nanda's body, also called Yogananda), the king had him arrested. Shakatala and his 100 sons were imprisoned, and were given food sufficient only for one person. Shakatala's 100 sons starved to death, so that their father could live to take revenge.