more comments on invert()