fixing rubocop problems