code and codebook