determine PI using two different methods