updated codebook and fixed a labeling issue