preparing for migration