added setters and getters for t1 and t2