wait for notification