before automatic update