updating the cursors