changed gapnote to note for simplicity