add condition variables