removed debug code