clean the debug code