update and fix rubocop