reduced the risk of memory leaks