updating before move