added element masking