have seg fault. want to use valgrind