adding pi estimator