add logic of 3 different types of notes.