removed debug code, fixed spelling