reheat and cancel function