seperated out codebook