masking with set intersection