added qwarp_invert