add new method getSchema