zero-initialize tm struct before filling