small changes to choose_h.py