handle pointer cancel