later on he was released by the emperor upon the payment of a ransom