 Complete the following phrase:  Thus in 1803, in accordance to this agreement, in the territorial rearrangements consequent on Napoleons suppression of the ecclesiastical states and of many free cities of the Empire, Bavaria received the bishoprics of Würzburg, Bamberg, Augsburg and Freisingen, part of that of Passau, the territories of twelve abbeys, and seventeen cities and villages. The whole form a compact territory which more than compensated for the loss of her outlying provinces on the Rhine. Montgelas now aspired to raise Bavaria to the rank of a first-rate power and he pursued this object during the Napoleonic epoch with consummate skill, allowing fully for the preponderance of France  so long as it lasted  but never permitting Bavaria to sink, like so many of the states of the Confederation of the Rhine, into mere French dependency. In the 