started bits.c functions