killed the memory leak