fix typo and semicolons