fixed rubocop and foodcritic errors