make calcFuncCovg more readable