updated the cursor typing