changed to factory

changed to factory