removed t1,t2 in function prototype