waiting and algo done