fixed several syntax errors