After World War I arrangements were made for him to study at the Islamic seminary in Isfahan, but he was attracted instead to the seminary in Arak. He was placed under the leadership of Ayatollah Abdul Karim Haeri Yazdi. In 1920, Khomeini moved to Arak and commenced his studies. The following year, Ayatollah Haeri Yazdi transferred to the Islamic seminary in the holy city of Qom, southwest of Tehran, and invited his students to follow. Khomeini accepted the invitation, moved, and took up residence at the Dar al-Shafa school in Qom. Khomeini's studies included Islamic law ("sharia") and jurisprudence ("fiqh"), but by that time, Khomeini had also acquired an interest in poetry and philosophy ("irfan"). So, upon arriving in Qom, Khomeini sought the guidance of Mirza Ali Akbar Yazdi, a scholar of philosophy and mysticism. Yazdi died in 1924, but Khomeini continued to pursue his interest in philosophy with two other teachers, Javad Aqa Maleki Tabrizi and Rafi'i Qazvini. However, perhaps Khomeini's biggest influences were another teacher, Mirza Muhammad 'Ali Shahabadi, and a variety of historic Sufi mystics, including Mulla Sadra and Ibn Arabi.