update t1 and t2