more work on cursors