update the codes when store cross data.