before migration