updating before changes