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