updated bits.c