updated the cursor