added inversion