cursor is tested and working