what does inversion do