run valgrind correctly