mask was inverted