finalized the migration