slight cahnges to pi_approx