memory leaks averted