corrected rubocop issues