closed the cursor