conditon variable use/instead of sleep/