setting up for p calculation