addressed valgrind