fixed syntax errors and build