cursors and ref created