added docs for invert