update arrayExchange