fixed a lot of syntax errors