corrected function of Iterator::ToList