checkpoint first sets calculation code.