refactor telex