t and t2 are not global anymore.