update before fsm