debugged tree map.