fixing some syntaxErrors