Though Dogen emphasised the importance of the correct transmission of the Buddha dharma, as guaranteed by the line of transmission from Shakyamuni, his own transmission became problematic in the third generation. In 1267 Ejō retired as Abbot of Eihei-ji, giving way to Gikai, who was already favored by Dōgen. Gikai introduced esoteric elements into the practice. Opposition arose, and in 1272 Ejō resumed the position of abbot. Following Ejō's death in 1280, Gikai became abbot again, strengthened by the support of the military for magical practices. Opposition arose again, and Gikai was forced to leave Eihei-ji. He was succeeded by Gien, who was first trained in the Daruma-school of Nōnin. His supporters designated him as the third abbot, rejecting the legitimacy of Gien.