fixed syntax errors so code compiles