tron refactor