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