able to get max size of an array

before it becomes a large object