Update factory.go