start of calc control
more calc work