in 1033, the royal court faced another dynastic trouble, this time with bagrat's half-brother demetrius of anacopia, a son of george i of his second marriage with alda of alania. demetrius and alda lived in anacopia, a fortress in abkhazia, which had been bequeathed to them by the late king george i. the efforts by bagrat's mother mariam to win demetrius's loyalty to the crown went in vain. threatened by bagrat, alda defected to the byzantines and surrendered anacopia to the emperor romanos iii in 1033, who honored her son demetrius with the rank of "magistros". according to "the georgian chronicles": king bagrat defeated a united army of his opponents and then besieged anacopia, then he went back, leaving otago chachasdze and his army to take charge of the fortress.