why are you instantiating a factory?