fixed chunksize to 50000