correct bitmask usage