better masking of missing data