implement tm reset()
implement tm computeFn()