update states