pattern detection in
notes