invert roots