testing to see if totalSize is the problem