remove unneeded sparsemem