adding some notes about memory leaks