add conditon add countdownlatch