removing bad debug code