simplify schema check