fixed factories file