updating factory