macro compose_reducedim