edits to make output schema-valid