updated calculators function