on 28 may 1789, he was appointed as the grand vizier (highest rank of the empire other than that of the sultan). but he was sick in bed when he received the sultan's letter of appointment. so he was nicknamed "cenaze" (corpse). on 22 september he personally led the army against the austrian-russian alliance in the battle of rymnik (called "boze" by the turks). but he was defeated. after this defeat he was dismissed on 2 december 1789.