add semicolon and brackets