lightened up the calculator function a bit