refactoring ticket-system and user