added bitmask variation