maskInvert goes with masking (to avoid bugs)