first commit for tm functions