add reference to codebook