tree rendering algorithm almost done