fixed hm and ht txt file outputs