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