working on implementing cursor