preparing for migrnation