added check.schema method