run calc on init