fixed codebook formatting