finish migration process