implement setSchema