 Muhammad shortly appointed his uncle Yusuf ibn Sabuktigin as the commander-in-chief of the army.Although Muhammad did not possess any real power, his empire flourished.Soon, however, Muhammad's slave troops ("ghulam") railed under Abu'l-Najm Ayaz, who had openly changed his allegiance to Muhammad's brother Mas'ud, whose military campaigns in western Iran had earned him a great reputation.