added masking to MTM and unmasking to all