renamed method getInvert to inverse.