working on cursor movement