use cursor.destroy