reverse chunk of debug code