adding new codebook