multidimensional generalization