delete debug function