trying to fix factory