fixed semicolons and indentation