correct inversion now