major changes to huffman-grouping