start of memory leaks check