updated to be in c
hfile