converting to proper bitmask comparison to test performance