get map from heap