check for invert