generating map from points