fixed some syntax errors and removed debug code