put masking for raw in wrong place