cuddle braces in function definitions
Missed some spots