inverter code