modified the schema api modle