reverted to ORIGINAL treemap code

This is going to need A LOT of debugging.