masking by distance