pvalue implemented