minor revisions

- forgot a renamed variable

- added some semicolons