change method name from _schema to _data_schema
complete the function of generating method