added codebook