 They arrested and imprisoned Muhammad.Moreover, they welcomed Mas'ud as their new leader.Later, when the Seljuks were overrunning the western parts of the Ghaznavid Empire, a mutiny among the Ghaznavid troops placed Mohammad back upon the throne, and he had his brother Mas'ud imprisoned in turn.