bug with p1-p2