create map from doc