for bad_blocks.c