In the meantime, taking advantage of the confusion in Poland, already by 1769–71, both Austria and Prussia had taken over some border territories of the Commonwealth, with Austria taking Szepes County in 1769-1770 and Prussia incorporating Lauenburg and Bütow. On 19 February 1772, the agreement of partition was signed in Vienna. A previous secret agreement between Prussia and Russia had been made in Saint Petersburg on 6 February 1772. Early in August, Russian, Prussian, and Austrian troops fighting the Bar confederation in the Commonwealth occupied the provinces agreed upon among themselves. On 5 August, the three parties issued a manifesto about their respective territorial gains on the Commonwealth's expense.