finishes migrating code