modified bitmask