expanded the comment in invert