fix rubocop version
refactor