resolve rubocop, foodcritic findings