inverter, refaktor