in the next year, béla was transferred to transylvania, he governed the province with the title duke too. bogomer followed his lord to transylvania. the earliest royal charter mentioning a "count and commander of the székelys" () was issued in 1235, which refers to a military campaign launched against bulgaria in 1228. accordingly, bogomer, then count of the székelys, participated in the war, when he was captured by the army of ivan asen ii's brother alexander. bogomer is the first known holder of the dignity, albeit bishop otto of freising already mentioned that "two counts" commanded the archers in the vanguard of the hungarian army in the battle of the fischa in 1146, while the hungarian chronicles recorded that székelys and pechenegs formed the vanguard of the hungarian army in that battle, thus the bishop's report may contain the first reference to a count of the székelys, according to attila zsoldos, gyula kristó, and other historians. on the other hand, as historian zoltán kordé emphasizes, 13th-century royal charters mentioned other royal officials who ruled székely groups, suggesting that the office had not been established in the previous century. for instance, a royal charter narrated of an army of saxon, vlach, székely, and pecheneg troops fighting in bulgaria under the command of joachim, count of hermannstadt, in the early 1210s, which suggests bogomer could be the first-ever office-holder, who possibly became count already in 1226. kordé argued andrew ii granted autonomy to colonial saxons of hermannstadt region in southern transylvania, when issued "diploma andreanum" (1224), just before the following year, when he launched a campaign against the teutonic knights, who had attempted to eliminate his suzerainty. according to kordé, the standardization of the székelys' status took place in the same time.