remove some unnecessary codegen variables