Enumerator.new is deprecated in 2.0