fixed missing semicolons and typos