updating the codebook formatting