Irrespective of the Newars' own complex and much elaborate social stratification, the legal code "Muluki Ain", promulgated in January 1854 A.D. by the new Rana regime, classified the entire Newar community as a single "enslavable alcohol-drinking" caste. It was in 1863 A.D. that majority of the Newars were upgraded to "non-enslaveable" category, after Jung Bahadur's content at Newars' administration of public offices during the Indian Rebellion of 1857. The most drastic change came only as late as 1935 A.D. during Juddha Shamsher's reign when amendments were made in the old legal code as a result of years of lobbying that granted the Rajopadhyayas the status of Upadhyaya Brahmans, and the Chatharīya Śreṣṭha the status of "pure" Kshatriya, enlisting these two Newar castes in the pan-Nepal tagadhari caste of "dwija" status.