add analysis method for pi