syntax error in code snippet