afaik an iterator has better performance