any huffman refactoring