changed return value of NoteLength