changed from note_id from string to integer