added break condition