Finally, the name of the Barca, Barót and other rivers could be either Turkic or Slavic. According to Béla Miklós Szőke's theory, the detailed description of the Magyars by western contemporary sources and the immediate Hungarian intervention in local wars suggest that the Hungarians had already lived on the eastern territories of the Carpathian Basin since the middle of the 9th century. Regarding the right location of early Hungarian settlements, the Arabic geographer al-Jayhani (only snippets of his work survived in other Muslim authors' papers) in the 870s placed the Hungarians between Don and Danube rivers. Szőke identifies al-Jayhani's Danube with the middle Danube region, as opposed to the previously assumed lower Danube region, because following al-Jayhani's description the Christian Moravians were the western neighbors of the Magyars. The Carpathian Basin was controlled from the 560s by the Avars, a Turkic-speaking people. Upon their arrival in the region, they imposed their authority over the Gepids who had dominated the territories east of the river Tisza. However, the Gepids survived up until the second half of the 9th century, according to a reference in the "Conversion of the Bavarians and the Carantanians" to their groups dwelling in Lower Pannonia around 870. The Avars initially were nomadic horsemen, but both large cemeteries used by three or four generations and a growing number of settlements attest to their adoption of a sedentary (non-nomadic) way of life from the 8th century. The Avars' power was destroyed between 791 and 795 by Charlemagne, who occupied Transdanubia and attached it to his empire. Archaeological investigation of early medieval rural settlements at Balatonmagyaród, Nemeskér and other places in Transdanubia demonstrate that their main features did not change with the fall of the Avar Khaganate. New settlements appeared in the former borderlands with cemeteries characterized by objects with clear analogues in contemporary Bavaria, Bulgaria, Croatia, Moravia and other faraway territories. A manor defended by timber walls (similar to noble courts of other parts of the Carolingian Empire) was unearthed at Zalaszabar. Avar groups who remained under the rule of their "khagan" were frequently attacked by Slav warriors.