MOD: allow 3 dimensions at most