valgrind fixed!