corrected some rogue curly braces and semi colons