WHAT IS THE FUNCTION OF AN INVERTER