passes valgrind tests