add condition variable