fixed print_h