valgrind said its fine.