edited syntax errors