before updates