stop allocating so much memory for nothing (c is hard)