note detection working