The Croatian Prince Trpimir I (845–864) succeeded Mislav. In 854, there was a great battle between Trpimir's forces and the Bulgars. Neither side emerged victorious, and the outcome was the exchange of gifts and the establishment of peace. Trpimir I managed to consolidate power over Dalmatia and much of the inland regions towards Pannonia, while instituting counties as a way of controlling his subordinates (an idea he picked up from the Franks). The first known written mention of the Croats, dates from 4 March 852, in statute by Trpimir. Trpimir is remembered as the initiator of the Trpimirović dynasty, that ruled in Croatia, with interruptions, from 845 until 1091. After his death, an uprising was raised by a powerful nobleman from Knin – Domagoj, and his son Zdeslav was exiled with his brothers, Petar and Muncimir to Constantinople.