minor removed debug code