clean ups to p-value function, calculate overlap