batch calculation p-values