working on the cursor