modify the factory.