A usefull method for cursors