change TM to SM