variables carry, p1, p2, p3 pointing to l1,l2,l3.