[modify] add avail conditional varible for result-getting