fixed syntax errors. compiles