trying to add a factory