update modelFactory