add condition alldone