Getting clean data codebook