don't need totalSize anymore