mask handling for ID02