added codebook for data