add semicolons, remove unnecessary semicolon