functions in bit.c & bitstream.c shoudl work