added John's masking