cleaned up the add_ticket method