moves valgrind command to the end