cursors working