make composition N-dimensional