inverting z