forgot to add calc_hw() function in main_sfs()