adding schema and judging document