update p-value calculation for a proper PDF