validating references to local parameters