renamed main to main_huff