 In the absence of Shamil, an imam by the name of Gamzat-bek ruled  . Gamzat-bek was an imam who had played a vital role in securing the Avar Khans for the Imamate, and had since been a naib to Shamil and Ghazi.
<coherence>  In the absence of Shamil, an imam by the name of Gamzat-bek ruled  . Gamzat-bek was an imam who had played a vital role in securing the Avar Khans for the Imamate, and had since been a naib to Shamil and Ghazi.
 In the absence of Shamil, an imam by the name of Gamzat-bek ruled . Gamzat-bek , an imam who had played a vital role in securing the Avar Khans for the Imamate, and had since been a naib to Shamil and Ghazi.