After that, Kaian the Zen master becomes the abbot of the temple, changing it from the Shingon sect to the Soto sect, and it is said that the temple continues to flourish.
改庵禅師はその後、寺の住職となり、真言宗だった寺を曹洞宗に改め、栄えたという。