The division, however, was made under certain stipulations of the deceased count. First, both counts had a right to attend the synods and tribunals held in either county. Second, rights of justice were shared between the two counts. Third, the count of Roussillon had the right to make his residence in Empúries, the ancient capital. And finally, that either count could possess lands in either county. In 1014, Hugh I of Empúries invaded Roussillon, but in 1019 a pact was signed making the two counties permanently separate entities.