added semicolons and brackets