fix some rubocop warnings