solving pvalue identical problem