updated syntax errors