rename transform method to invert