use id info to emit constants