refactoring in Tmx