fixed factory file