added features to codebook