change 3 before_restart