modified hf.h file