changing t1 and t2 names
changing insert_in function