update huffman, acting weird