solved problem with memory leaks