added two new functions for recalc