note_spec refactor