dp, bitmask