update to states