reworked the cursor moving
idem