fix semicolons and indentations