fixing syntax errors and line endings. compiles