label reference resolving