added codebook
updated