adding td on ctor/dtor