finish migration