Syntax error on line 38: unpaired '{' .
  next {
