typos in p-value func