working on destory tree to clean up memory errors and leaks
merged