blahblah 1 more update, optimize note detection.