You didn't finish the line 39's IF statement. If you don't finish an IF statement, a FOR loop, or a WHILE loop, it will tell you not on the line that the error is, but rather the line where it realizes that it cannot be finished later. So just finish that IF statement and you should be good.