note: changed API of note_collate