 Many of the Turks then defected; some entered the service of the Buyid Hasan, while others under Bajkam traveled to the Abbasid caliph in Baghdad.Hasan took advantage of this situation by stripping Isfahan from Ziyarid rule.The Dailamite and Gilite troops, however, pledged their support to Voshmgir, who was in Ray.