Changes to invert