more reliable conditions for notify()