* better error message
* add missing semicolon
* formatting