rebalanced version of map1