adding codebook
updating codebook