adding back lost work on netcalc.c