Tried to use iterators