fixing rubocop and foodcritic errors

style :D