squash empty dimension in boundaries