fixed some syntax errors in p1, p2