fix bug in computing t1, 2