minor debug code cleanup