changed deprecated rubocop style