remove unused invert