start of note functions