fixing indents and semicolons