new reducedim framework working for basic functions