output_ticket and fix complie