cancel method.