fixed several syntax problems
Fixed several syntax errors