remember to return after uploading subarrays