adding TM condition