update c1 and c2