Formatting codebook