serialize note