remove problematic debug code