codebook formating