refactored and used ticket_store