an assembly of learned men, and then attended his court. It is possible that Kumarapala gave up the Brahminical rituals during the last years of his life. Another possibility is that the later Jain writers made concerted attempts to falsely portray him as a completely devout Jain. The Shaivite texts claim that Kumarapala converted back to Shaivism. For example, a Skanda Purana story states that Brahmins appealed to Hanuman for Kumarapala's re-conversion to Shaivism: a talisman given by Hanuman resulted in the destruction of Kumarapala's capital, and ultimately, his re-conversion. Gadadhara's Sampradaya Pradipa (1554) claims that Hemachandra was defeated in a debate and sentenced to death, after which Kumarapala became a Shaivite. Such stories, which appear to be imaginary, conceded that at some point, Kumarapala believed in Jainism. Constructions The Vadnagar inscription (1152 CE) mentions that Kumarapala built the fort of Vadnagar. Jagaducharita mentions that he ordered a tank to be built at Bhadravati (Bhadreshwar). The stepwell at Vayad near Patan was built during Kumarapala's reign. Ganga stepwell at Wadhwan has been dated to 1169 CE (Samvat 1225). Temples Kumarapala had constructed many temples; Brahminical temples as well as Jain temples due to his leaning towards it. According to the Jain texts, he was responsible for building a large number of temples in his capital Anahilapataka (modern Patan). He built the temple at Somanatha in 1169 CE which the grandest and the most beautiful of his time. It's gudhamandapa (shrine proper) had the ceiling of about 34 feet which is the largest known in India. He built Kumarapaleshwar temple and renovated Kedareshwar temples at Anahilapataka (now Patan). He replaced Phase II Somnath Temple (Bhima II's temple) at Prabhas with large Kailash-Meru temple on the place. He also constructed Somnath Temple in Pali, Rajasthan. According to Jain prabandhas, he built 32 Jain temples as the repentance of his non-vegetarianism in early life. This is mentioned in Yashapala's Mohaparajaya-nataka (VS 1229-32, 1173-76 CE) as well as in Prabhachandracharya's Prabhavakacharita (VS 1334, 1278 CE) and Merutunga's Prabandhachintamani (VS 1361, 1305 CE). Though it may be not be true explanation, he had constructed large number of temples himself or were constructed by his governors, administrators and officers. He built Kumara-vihara dedicated to Parshwanath which had 24 devkulikas (shrines) in Anahilapataka. He built Trivihara and Tribhuvana-vihara (1160 CE) at Anahilapataka in merit of his father Tribhuvanpla which had 72 devkulikas and was dedicated to Neminatha.