fixing rubocop warnings