migrate state