properly reading in bit string