cursor cancel implemented