updated p1 to p3