fix a ton of syntax errors