add notify and notifyAll