AI: change the way array data is copied, use push instead of = for each element.