working on improving Treemap structure for better flexibility