working on cursor bug