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