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