trying the fucntions with p1 instead of p0.001