populating map from activities array
populating map from activities array