large refactor of dimension stacking