use valgrind to fix memory leak