fixing some syntax errors