worked on cursor control