added cancel method on cursor