* fix errors:
* undefined methods
* formatting