update current state