optimized the integer operations codegen a bit