minor changes to hc.c