trying to implement .iter()