masking for each window