added post/pre inversion