change Iterator to Cursors