codebook and dataset