refactoring in TMX