adds code for decoding bitField