Muhammad ibn Yaqut made a comeback, combining the positions of hajib and commander-in-chief, but despite their dominant position in Baghdad, the lack of financial resources meant that the hajib could not compete with provincial governors who controlled the sources of revenue. Thus in 936 it was Ibn Ra'iq who was selected as amir al-umara, and became the de facto ruler of the caliphate. Having lost the struggle for power, the chamberlains were recompensed with an increase in titulature: from 941, the head chamberlain was known as hajib al-hujab ("chamberlain of chamberlains"). Al-Andalus In the Umayyad Emirate of Cordoba and in the succeeding Caliphate of Cordoba, the hajib was from the outset the most senior minister of the state, at the head of his own court (majlis), where he received petitioners and messengers. The hajib was the chief aide of the emir or caliph and the head of the administration, supervising the three main branches into which it was divided: the royal household, the chancery, and the financial department. Several of the holders of the office also commanded armies. Unlike the Islamic East, the title of vizier was given to lower-ranking counsellors tasked with various matters, and subordinate to the hajib; the latter was almost always chosen from the viziers. A number of ordinary hajibs was tasked with the doorkeeping duties and directing court ceremonies. Notable hajibs were Abd al-Karim ibn Abd al-Wahid ibn Mughith, who served in the post in the successive reigns of Hisham I (), al-Hakam I (), and Abd al-Rahman II (); the famously incorruptible Isa ibn Shuhayd, who served under Abd al-Rahman II and into the reign of Muhammad I (); and finally Almanzor, who as the hajib assumed quasi-regal authority and was the de facto ruler of the Caliphate of Cordoba 978 until hid death in 1002. Following the collapse of the caliphate and the political fragmentation of al-Andalus into the competing taifa kingdoms, some of the taifa rulers, who were not members of the Umayyad dynasty and could not claim the title of caliph, imitated Almanzor and used the title of hajib, rather than malik ("king"), thus maintaining the fiction that they were simply representatives of the long-vanished caliph. Eastern Islamic dynasties Many of the dynasties that emerged in the eastern Islamic world after the fragmentation of the Abbasid Caliphate in the mid 9th–10th centuries modelled their administrative and courtly practices on the Abbasids.