modified:   local_calc.cpp