fixing memory leak.
about to remove
removing Makefile