fixed syntax errors in code