Invert method logic