invert arr