changed code to use OpenBitSet