formula and var updates