Try to use iterators in render method.