change map to treemap