simplify reduction-dim functions