add missing semicolon and edit code style