huffman and map'cps added