corrected waitForNote