reverting condition variable