Reformat the codebook