adding note_id processing and removing error_text