closed some cursors