updated EPI masking