prevent loss of old value in a subrutine in solve_univariate