tweaked preliminary masking