- add doc string for factory.py