refactor ticket