fixed a bunch of syntax errors. it works\!