codebook and better column filtering