use the length of the array instead of what the bitset things the length is