assign unitSize to new array.