cleanin up the debug code