updating before migration