rename param update_state to update