finishes migration