create bitmasks