remove inversion