Double masking for protection