add helper function to MaskMode