how to invert