debug ending