change cancel value logic