added codebook
added codebook