debuging, use valgrind. search memory leak