added method isCanceled