update factory