update before moving