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