corrected rubocop warnings