used rubocop to clean up all bad ruby syntaxes that are idiomatic enough