That will be much more obvious if the OP uses ctrl-t to properly format their code. As it is, it looks like there's room for another level of indentation, when there isn't.
Note you have 3 right-braces here, only the first one is matched to a left brace.
Get rid of the first two, so that all your loop() code is between on PAIR of braces and it should compile.