INVERTER MAIN