fixed various syntax errors