doing cursors right