update to the current state