add missing argument for factory function