fixed typo, removed debug code