add alternate version of tree map