 Complete the following phrase:  The capital of Mataram moved several times afterwards only to return later to a location near Kotagede. From Kerta it was relocated to Plered by Agungs son Mangkurat I. Only one generation settled in Plered before the fall of this city after being defeated by some contenders of Mangkurat I in 1677. After the rebellion had been put down, his successor Mangkurat II, decided to establish a new capital named Kartasura 50 km to the east. 