modify factories for models