update to current state