syntax error in template