resolve labels once