add condition for break