done with inversion