changed ray iterator name to avoid confusion with ray class name